-- GENERATED SPELL FOR [Thalgran Blightbringer] --


function spell0_28443(pUnit, Event) --@Deathbolt,n/a--
pUnit:FullCastSpellOnTarget(51854,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28443', 3000, 1)
end

function spell1_28443(pUnit, Event) --@Rain of Fire,n/a--
pUnit:FullCastSpellOnTarget(54210,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28443', 5000, 1)
end

function Sorts_28443(pUnit, Event)
local choix_sorts_28443 = math.random(0, 1)
if choix_sorts_28443 == 0 then
pUnit:RegisterEvent('spell0_28443', 1, 1)
end
if choix_sorts_28443 == 1 then
pUnit:RegisterEvent('spell1_28443', 1, 1)
end
end

function mob28443_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28443', math.random(1500, 3000), 1)
end

function mob28443_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28443_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28443_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28443, 1, 'mob28443_Action')
RegisterUnitEvent(28443, 2, 'mob28443_Leave')
RegisterUnitEvent(28443, 3, 'mob28443_Kill')
RegisterUnitEvent(28443, 4, 'mob28443_Die')
